package tanshiru2.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import tanshiru2.config.TsrInfo;

@Controller
public class BaseController {
    @Autowired
    private TsrInfo tsrInfo;

    @ModelAttribute
    public void init(Model model) {
        model.addAttribute("TsrInfo", tsrInfo);
    }
}
